package com.sanss.trapParse.info;

public class RuleInfo {

	private String node;

	private String mibName;

	private String oid;

	private String agent;

	private String agentGroup;

	private String alertKey;

	private String summary;

	public static final String identifier = "@Node + ";

	public static final String OS_Severity = "Unknown";

	public static final String DEFAULT_Severity = "1";

	public static final String DEFAULT_Type = "0";

	public static final String DEFAULT_ExpireTime = "0";

	public void setNode(String node) {
		this.node = node;
	}

	public String getNode() {
		return node;
	}

	public void setMibName(String mibName) {
		this.mibName = mibName;
	}

	public String getMibName() {
		return mibName;
	}

	public void setOid(String oid) {
		this.oid = oid;
	}

	public String getOid() {
		return oid;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgentGroup(String agentGroup) {
		this.agentGroup = agentGroup;
	}

	public String getAgentGroup() {
		return agentGroup;
	}

	public void setAlertKey(String alertKey) {
		this.alertKey = alertKey;
	}

	public String getAlertKey() {
		return alertKey;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getSummary() {
		return summary;
	}

	public RuleInfo() {
		// TODO Auto-generated constructor stub
	}

	public String toString() {
		return "\n\t"
				.concat("@Agent = ")
				.concat(agent)
				.concat("\n\t@AlertGroup = ")
				.concat(agentGroup)
				.concat("\n\t@AlertKey = ")
				.concat(alertKey)
				.concat("\n\t@Summary = ")
				.concat(summary)
				.concat("\n\t@Node = Undefined\n\t@Timestamp = Undefined\n\t@Objectname = Undefined\n\t@Objecttype = Undefined\n")
				.concat("\n\t$OS_Severity = ").concat(OS_Severity)
				.concat("\n\t$DEFAULT_Severity = ").concat(DEFAULT_Severity)
				.concat("\n\t$DEFAULT_Type = ").concat(DEFAULT_Type)
				.concat("\n\t$DEFAULT_ExpireTime = ").concat(DEFAULT_Type)
				.concat("\n\t@Identifier = ").concat(identifier)
				.concat("\n\tdetails(").concat(alertKey).concat(")\n");
	}
}
